package com.example.Service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.Service.ItService;
import com.example.dao.ItMapper;
import com.example.pojo.Press;
import com.example.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItServiceImpl extends ServiceImpl<ItMapper, Press> implements ItService {

    @Autowired
    private ItMapper itMapper;

    public void pressById(Integer id) {
        itMapper.pressById(id);
    }


    public Integer repeatId(Integer id) {
        return itMapper.repeatId(id);
    }

    public void addPressById(Integer id) {
        itMapper.addPressById(id);
    }

    public List<Press> selectAllPress() {
        return itMapper.selectAllPress();
    }


    public List<User> selectDutyCount() {
        return itMapper.selectDutyCount();
    }
}
